Is there a standard function to check for null undefined or blank variables in JavaScript